package com.michaelbulava.TFS.vc.tfsitem;

import com.intellij.openapi.project.Project;
import com.michaelbulava.TFS.common.item.ServerItemPath;
import com.microsoft.tfs.core.clients.versioncontrol.soapextensions.ExtendedItem;
import com.microsoft.tfs.core.clients.versioncontrol.soapextensions.RecursionType;
import com.microsoft.tfs.core.clients.versioncontrol.soapextensions.Workspace;
import com.microsoft.tfs.core.clients.versioncontrol.specs.ItemSpec;

/**
 * Created by MichaelA on 7/22/2015.
 */
public class TFSFile extends TFSItem {

    public TFSFile(ServerItemPath path, Workspace workspace){//}, Project project) {
        super(path, workspace);//, project);
    }

    public TFSFile(ExtendedItem extendedItem, Workspace workspace){//, Project project) {
        super(extendedItem, workspace);//, project);
    }

    public ItemSpec getItemSpec(){
        return new ItemSpec(getFullPath(), RecursionType.NONE, getDeletionID());
    }
}
